package com.zatech.cgnci.project.base.result;


import lombok.Data;

import java.util.List;

/**
 * Created on 2020/5/6 21:45
 *
 * @author gj
 * @desc 分页数据
 */
@Data
public class DBPageData<T> {

    /**
     * 总条数
     */
    private Integer totalCount;
    /**
     * 当前页
     */
    private Integer curPageNum;
    /**
     * 是否有下页
     */
    private boolean hasNext;
    /**
     * 数据集合
     */
    private List<T> rows;

    public DBPageData(Integer totalCount, List<T> rows, Integer curPageNum, boolean hasNext) {
        this.totalCount = totalCount;
        this.rows = rows;
        this.curPageNum = curPageNum;
        this.hasNext = hasNext;
    }

    public DBPageData() {

    }


}
